﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_StockDetailList.aspx.cs"
    Inherits="SaleSystem.Stock.frm_StockDetailList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>库存查询</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:PageManager runat="server" ID="PageManager1" />
        <ext:Toolbar runat="server" ID="toolbar1">
            <Items>
                <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click">
                </ext:Button>
                <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add" Hidden="true">
                </ext:Button>
            </Items>
        </ext:Toolbar>
        <ext:Form runat="server" ID="Form2" EnableBackgroundColor="true" ShowHeader="false"
            BodyPadding="10px" ShowBorder="false">
            <Rows>
                <ext:FormRow>
                    <Items>
                        <ext:DropDownList runat="server" ID="ddl_SDeta_Stock_Id" Label="仓库名称" Width="200px"
                            DataValueField="Stock_Id" DataTextField="Stock_Name" TabIndex="1">
                        </ext:DropDownList>
                    </Items>
                </ext:FormRow>
                <ext:FormRow>
                    <Items>
                        <ext:DropDownList runat="server" ID="ddl_PInfo_PSort_ID" Label="产品类别" Width="200px"
                            Required="true" CompareValue="-1" CompareOperator="NotEqual" ShowRedStar="true"  
                            DataTextField="PSort_Name" DataValueField="PSort_ID" EnableSimulateTree="true" TabIndex="2"
                            DataSimulateTreeLevelField="ilevel">
                        </ext:DropDownList>
                        <ext:TwinTriggerBox Width="200px" EnableEdit="false" runat="server" ID="tb_SDeta_PInfo_Id" Trigger1Icon="Clear" Trigger2Icon="Search"
                            Label="产品名称" OnTrigger1Click="tb_SDeta_PInfo_Id_TriggerClick" TabIndex="3">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow>
                    <Items>
                        <ext:NumberBox runat="server" ID="nb_SDeta_RealNumber1" DecimalPrecision="0" Label="库存量>=" Width="200px" TabIndex="4"></ext:NumberBox>
                        <ext:NumberBox runat="server" ID="nb_SDeta_RealNumber2" DecimalPrecision="0" Label="库存量<=" Width="200px" TabIndex="5">
                        </ext:NumberBox>
                    </Items>
                </ext:FormRow>
            </Rows>
        </ext:Form>
        <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="库存明细列表"
            IsDatabasePaging="true" DataKeyNames="SDeta_PInfo_Id,PInfo_Name" EnableRowNumber="true"
            AllowPaging="true" OnPageIndexChange="gv_List_PageIndexChange" AutoHeight="true"
            OnRowCommand="gv_List_RowCommand" >
            <Columns>
                <ext:LinkButtonField ColumnID="eidt" CommandName="edit" DataTextField="PInfo_Code"
                    DataTooltipField="PInfo_Code" Text="产品编码" HeaderText="产品编码" Width="100px" />
                <ext:BoundField ColumnID="PInfo_Name" DataField="PInfo_Name" DataTooltipField="PInfo_Name"
                    HeaderText="产品名称" Width="150px" />
                <ext:BoundField ColumnID="PSort_Name" DataField="PSort_Name" DataTooltipField="PSort_Name"
                    HeaderText="类别" Width="80px" />
<%--                <ext:BoundField ColumnID="PInfo_Cost" DataField="PInfo_Cost" DataTooltipField="PInfo_Cost"
                    HeaderText="成本价" Width="80px" />
                <ext:BoundField ColumnID="PInfo_Price" DataField="PInfo_Price" DataTooltipField="PInfo_Price"
                    HeaderText="零售价" Width="80px" />--%>
                <ext:LinkButtonField ColumnID="SDeta_InputNumber" DataTextField="SDeta_InputNumber" DataTooltipField="SDeta_InputNumber"
                    HeaderText="入库总量" Width="80px" CommandName="SDeta_InputNumber" />
                <ext:LinkButtonField ColumnID="SDeta_OutputNumber" DataTextField="SDeta_OutputNumber" DataTooltipField="SDeta_OutputNumber"
                    HeaderText="已出库量" Width="80px"  CommandName="SDeta_OutputNumber"/>
                <ext:BoundField ColumnID="SDeta_RealNumber" DataField="SDeta_RealNumber" DataTooltipField="SDeta_RealNumber"
                    HeaderText="当前库存" Width="80px" />
            </Columns>
        </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true" EnableConfirmOnClose="true"
        Title="产品选择" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="800px"
        Height="600px" EnableMaximize="true">
    </ext:Window>
    <ext:Window runat="server" ID="win_Content2" Popup="false" EnableIFrame="true" EnableConfirmOnClose="true"
        Title="新增产品" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px"
        Height="500px">
    </ext:Window>
      <ext:Window runat="server" ID="win_Content3" Popup="false" EnableIFrame="true"  EnableConfirmOnClose="true" Title="单据列表" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="800px" Height="600px" EnableMaximize="false"></ext:Window>
    <ext:HiddenField runat="server" ID="hf_Other">
    </ext:HiddenField>
    <ext:HiddenField runat="server" ID="hf_SDeta_PInfo_Id">
    </ext:HiddenField>
    </form>
</body>
</html>
